<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
	String loc = "???";
	
	if(request.getParameter("sec") != null){
		if(request.getParameter("sec").equalsIgnoreCase("sd")) {
			loc = request.getParameter("sec");
		} else if(request.getParameter("sec").equalsIgnoreCase("order")) {
			loc = request.getParameter("sec");
		} else if(request.getParameter("sec").equalsIgnoreCase("maint")) {
			loc = request.getParameter("sec");
		} else if(request.getParameter("sec").equalsIgnoreCase("rep")) {
			loc = request.getParameter("sec");
		}
	}
%>
	<div id="menuDiv" style="padding:0px;overflow:auto; width:200px;">
		<table id="menuTable" width="100%" border="0" cellpadding="0" cellspacing="0">
<%	
		
		if(loc.equalsIgnoreCase("maint") || loc.equalsIgnoreCase("???")) {
%>
			<tr>
				<td class="menuoption">
<%
				if(loc.equalsIgnoreCase("maint")){
%>
					<div><h1><a href="<%=request.getContextPath()%>/bidding.do?sec=sd">Bidding</a></h1></div>
<%
				}
%>
					<div><h1>Maintenance</h1></div>
					<div id="s2">
						<li><a href="<%=request.getContextPath()%>/productTypeMaintenance.do?sec=maint">Producy Type</a></li>
						<li><a href="<%=request.getContextPath()%>/brandMaintenance.do?sec=maint">Brand</a></li>
						<li><a href="<%=request.getContextPath()%>/productRegistration.do?sec=maint">Product</a></li>
					</div>
<%
				if(loc.equalsIgnoreCase("maint")){
%>
					<div><h1><a href="<%=request.getContextPath()%>/reports.do?sec=rep">Reports</a></h1></div>
<%
				}
%>		
				</td>
			</tr>
<%
		}
		
%>
		</table>
	</div>
